package com.yonyou.service.demo;

/**
 * 常量表
 */
public class Consts {

    private Consts() {

    }

    // rest 请求Token，必须设置 http header: APPID
    public static final String APPID = "APPID";

    // rest 请求服务，必须同时设置 http header: APPID 和 TOKEN
    public static final String TOKEN = "TOKEN";

    public final static String DEFAULT_ENCODING = "UTF-8";

    // rest 返回状态码，200 为成功， 500 为失败
    public final static Integer ERROR_REST_CODE = 500;
    public final static Integer SUCCESS_REST_CODE = 200;

    // 默认服务TOKEN有效期 30 分钟
    public final static int SERVICE_TIME_OUT = 1000 * 60 * 30;

    // 以下两个key 可以再自己生成，通过 java -jar demo-1.0.jar -g 生成
    public final static String PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDNNqmd9DNtR3ZepTtwCmyfR2RKiu0KXKokO3eIhvcsonFrP5ql4xrEj1CzojkFdOnhP4YG7KGwdNzuDhZ1fSBeqQvaRrNyN5h0KVoCwODlV+DPgvCsRs1yeaJXqTI3UbBKi1qZeYr+SpzuXsTOECMuQCZfcFozub+xyD1kS9CHfQIDAQAB";
    public final static String PRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAM02qZ30M21Hdl6lO3AKbJ9HZEqK7QpcqiQ7d4iG9yyicWs/mqXjGsSPULOiOQV06eE/hgbsobB03O4OFnV9IF6pC9pGs3I3mHQpWgLA4OVX4M+C8KxGzXJ5olepMjdRsEqLWpl5iv5KnO5exM4QIy5AJl9wWjO5v7HIPWRL0Id9AgMBAAECgYB1mQGSVsKxuOYITr/E8PRWQl8iqII2EeweX0Wco1s55M0CHKzOq1pHkak5h5kNm3X7cp+nkCsIJ7ADa2dLZK0LCs71zO3MD3Mb3L+ljh+v33o00RJQG7Xdif2ExL5xw15+SS4noFQpqco4eTDbAoubXZQW6J4i+gYk91cfFwbTsQJBAPKK87D9GFFGu5X8qpEfcDeI+EkTcN+Xc9+goMuWzS8GYdWknzb/r9sUh4eScoCZvyFy4Z6Iy9c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